package com.ice.project.dataminig.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;

import org.apache.log4j.Logger;

import weka.classifiers.Evaluation;
import weka.classifiers.bayes.NaiveBayes;
import weka.core.Attribute;
import weka.core.Instance;
import weka.core.Instances;
import weka.core.converters.ConverterUtils.DataSource;

import com.ice.project.datamining.gui.MainWindow;

public class MainWindowListener implements ActionListener{
	
	/** Main window **/
	private MainWindow window ;
	
	public MainWindowListener(MainWindow w){
		this.window = w ;
	}

	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("Submit")){		
			 this.window.getProbability().computDataSet();
		}
		
	}

}
